namespace EntityFrameworkModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class hkb_RequirementBook
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public hkb_RequirementBook()
        {
            hkb_RequirementBookCar = new HashSet<hkb_RequirementBookCar>();
            hkb_RequirementBookCompany = new HashSet<hkb_RequirementBookCompany>();
            hkb_RequirementBookCredit = new HashSet<hkb_RequirementBookCredit>();
            hkb_RequirementBookDemand = new HashSet<hkb_RequirementBookDemand>();
            hkb_RequirementBookEquipment = new HashSet<hkb_RequirementBookEquipment>();
            hkb_RequirementBookGuarantee = new HashSet<hkb_RequirementBookGuarantee>();
            hkb_RequirementBookHouse = new HashSet<hkb_RequirementBookHouse>();
            hkb_RequirementBookInsurance = new HashSet<hkb_RequirementBookInsurance>();
            hkb_RequirementBookJob = new HashSet<hkb_RequirementBookJob>();
            hkb_RequirementBookOtherAsset = new HashSet<hkb_RequirementBookOtherAsset>();
        }

        [Key]
        public long GuestsId { get; set; }

        public long OrgId { get; set; }

        public Guid RequirementId { get; set; }

        public long? AppliedUserId { get; set; }

        [StringLength(10)]
        public string Name { get; set; }

        public int? Age { get; set; }

        [StringLength(15)]
        public string CellPhone { get; set; }

        public int? Gender { get; set; }

        public int? Education { get; set; }

        public int? IsMarried { get; set; }

        public int? LiveTime { get; set; }

        public int? Province { get; set; }

        public int? SeatCity { get; set; }

        public int? District { get; set; }

        [StringLength(40)]
        public string IDCard { get; set; }

        public int? UserIdentity { get; set; }

        [StringLength(500)]
        public string CustomerSummary { get; set; }

        [StringLength(500)]
        public string ExpertSuggest { get; set; }

        public int? ProcessStatus { get; set; }

        public DateTime? ApplicationTime { get; set; }

        public DateTime? CreateTime { get; set; }

        public DateTime? UpdateTime { get; set; }

        public virtual hkb_Organization hkb_Organization { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookCar> hkb_RequirementBookCar { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookCompany> hkb_RequirementBookCompany { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookCredit> hkb_RequirementBookCredit { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookDemand> hkb_RequirementBookDemand { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookEquipment> hkb_RequirementBookEquipment { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookGuarantee> hkb_RequirementBookGuarantee { get; set; }

        public virtual hkb_RequirementBookTrace hkb_RequirementBookTrace { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookHouse> hkb_RequirementBookHouse { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookInsurance> hkb_RequirementBookInsurance { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookJob> hkb_RequirementBookJob { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<hkb_RequirementBookOtherAsset> hkb_RequirementBookOtherAsset { get; set; }
    }
}
